import time

from selenium.webdriver.common.by import By

from pages.base_page import BasePage
from pages.elements import Elements
from pages.reg_page import RegPage
from utils.log_manager import my_logger

class UserCenterPage(BasePage):
    '''
    下架
    '''
    def xiajia(self,):
        self.click_element(Elements.XIAJIA_BUNNTON)
        self.sleep(2)
        self.click_element(Elements.CONFIRM_BTN)
        self.sleep()
        self.click_element(Elements.XIAJIA_TAB)

    '''
    收藏列表
    '''
    def star_list(self):
        self.click_element(Elements.MY_STAR_TAB)
        self.sleep()
    '''
    取消收藏
    '''
    def cancel_star(self):
        self.click_element(Elements.CANCEL_STAR_BTN)
        self.sleep(2)
        self.click_element(Elements.CONFIRM_BTN)
    '''
    我卖出的
    '''
    def sell_out_list(self):
        self.click_element(Elements.MY_SELL_OUT)
        self.sleep()

    def my_buy_list(self):
        self.click_element(Elements.MY_BUY)
        self.sleep()
    '''
    修改收货地址
    '''
    def edit_address(self,new_address):
        pass

    '''
    添加收货地址
    '''
    def add_address(self,new_address):
        pass

    def del_addrres(self):
        pass

    def edit_user_info(self,userinfo):
        pass



